#ifndef WXSIMAGEPROPERTY_H
#define WXSIMAGEPROPERTY_H

#include "wxsbitmapiconproperty.h"


class wxsImageProperty: public wxsCustomEditorProperty {
  public:


    wxsImageProperty( const wxString& PGName, const wxString& DataName, const wxString& DataSubName, long Offset, int Priority = 100 );


    virtual const wxString GetTypeName() { return _T( "wxArrayString" ); }


    virtual bool ShowEditor( wxsPropertyContainer* Object );

  protected:

    virtual bool XmlRead( wxsPropertyContainer* Object, TiXmlElement* Element );
    virtual bool XmlWrite( wxsPropertyContainer* Object, TiXmlElement* Element );
    virtual bool PropStreamRead( wxsPropertyContainer* Object, wxsPropertyStream* Stream );
    virtual bool PropStreamWrite( wxsPropertyContainer* Object, wxsPropertyStream* Stream );
    virtual wxString GetStr( wxsPropertyContainer* Object );

  private:
    long Offset;
    wxString DataSubName;
    wxString DataName;
};




#define WXS_IMAGE(ClassName,VarName,PGName,DataName) \
  { static wxsImageProperty _Property(PGName,DataName,_T("Item"),wxsOFFSET(ClassName,VarName)); \
    Property(_Property); }


#define WXS_IMAGE_P(ClassName,VarName,PGName,DataName,Priority) \
  { static wxsImageProperty _Property(PGName,DataName,_T("Item"),wxsOFFSET(ClassName,VarName),Priority); \
    Property(_Property); }



#endif
